//
//  AccountBalanceCell.m
//  DaoZiJinFu
//
//  Created by woker on 16/6/24.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import "AccountBalanceCell.h"

@implementation AccountBalanceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView {
    AccountBalanceCell *cell = [tableView dequeueReusableCellWithIdentifier:BALANCE_CELL];
    if (!cell) {
        cell = [[AccountBalanceCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:BALANCE_CELL];
    }
    return cell;
}

- (IBAction)switchClick:(id)sender {
    [[NSNotificationCenter defaultCenter]postNotificationName:@"accountSwitchChanged" object:self userInfo:@{@"switchStatus":[NSNumber numberWithBool:_accountSwitch.on]}];
}

@end
